<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>系统菜单管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="static/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="static/layuiadmin/style/admin.css" media="all">
</head>
<body>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">菜单ID</label>
                    <div class="layui-input-inline">
                        <input type="text" name="id" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">菜单-PID</label>
                    <div class="layui-input-inline">
                        <input type="text" name="author" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">标题</label>
                    <div class="layui-input-inline">
                        <input type="text" name="title" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">文章标签</label>
                    <div class="layui-input-inline">
                        <select name="label">
                            <option value="">请选择标签</option>
                            <option value="0">美食</option>
                            <option value="1">新闻</option>
                            <option value="2">八卦</option>
                            <option value="3">体育</option>
                            <option value="4">音乐</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layuiadmin-btn-list" lay-submit lay-filter="LAY-app-contlist-search">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                    </button>
                </div>
            </div>
        </div>

        <div class="layui-card-body">

            <table id="LAY-app-content-list" lay-filter="LAY-app-content-list" >


            </table>

            <script type="text/html" id="buttonTpl">
                {{#  if(d.menuStatus == 1){ }}
                <button class="layui-btn layui-btn-xs" lay-event="available">可用</button>
                {{#  } else { }}
                <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="forbid">禁用</button>
                {{#  } }}
            </script>

            <script type="text/html" id="table-content-list">
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
            </script>
        </div>

    </div>
</div>

    <%--弹出修改的信息框--%>
    <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list"
    style="display:none;padding: 20px 30px 0 0;">

    <div class="layui-form-item">
    <label class="layui-form-label">菜单名</label>
    <div class="layui-input-inline">
    <input id="menu_name" type="text" name="menu_name" disabled="disabled" lay-verify="required" autocomplete="off"
    class="layui-input">
    </div>

    </div>
    <div class="layui-form-item">
    <label class="layui-form-label">菜单ID</label>
    <div class="layui-input-inline">
    <input type="text" id="menu_id" disabled="disabled" name="menu_id" lay-verify="required" autocomplete="off"
    class="layui-input">
    </div>
    </div>

    <div class="layui-form-item">
    <label class="layui-form-label">菜单logo</label>
    <div class="layui-input-inline">
    <input type="text" id="menu_icon" name="menu_icon"  autocomplete="off" class="layui-input">
    </div>
    </div>

    <div class="layui-form-item">
    <label class="layui-form-label">菜单描述</label>
    <div class="layui-input-inline">
    <textarea id="menu_disc" name="menu_disc"  style="width: 150px; height: 20px;"
    autocomplete="off" class="layui-textarea"></textarea>
    </div>
    </div>


    <div class="layui-form-item">
    <label class="layui-form-label">菜单状态</label>
    <div class="layui-input-inline">
    <input id="menu_status" type="checkbox" lay-verify="required" lay-filter="status" name="menu_status"
    lay-skin="switch" lay-text="可用|禁用">
    </div>
    </div>


    <div class="layui-input-block">
    <div class="layui-footer" style="left: 0;">
    <div class="layui-input-inline">
    <button id="add-entity-info-btn" class="layui-btn layui-btn-radius layui-btn-normal" lay-submit="" lay-filter="updata-entity-info-btn">提交修改</button>
    </div>
    <div class="layui-input-inline" style="margin-left:50px">
    <button id="add-entity-info-btn-reset"  type="reset" class="layui-btn layui-btn-radius layui-btn-normal" lay-filter="cancel-entity-info-btn">清空输入</button>
    </div>
    </div>
    </div>
    </div>


<script src="static/user/js/jquery.min.js"></script>
<script src="static/layuiadmin/layui/layui.js"></script>

<script src="static/user/menulist.js"></script>
<script>

</script>
</body>
</html>
